package controllers

import "myapp/models"

type NewsController struct {
	CommonController
}

func (this *NewsController) List() {
	rows, _ := models.GetAllGoods()
	this.Data["Goodss"] = rows
	this.TplName = "news_list.html"
}
func (this *NewsController) Detail() {
	id := this.Input().Get("id")
	row := models.GetGoodsDetail(id)
	this.Data["News"] = row
	this.TplName = "news_detail.html"
}
